﻿using SocketCore.Network;

namespace SocketCore.Event
{
    internal class ExceptionEvent
    {
        private System.Exception ex;
        private IoSession session;

        public ExceptionEvent(IoSession session, System.Exception ex)
        {
            this.session = session;
            this.ex = ex;
        }

        public System.Exception Ex
        {
            get
            {
                return ex;
            }
        }

        public IoSession Session
        {
            get { return session; }
        }
    }
}
